
/**
 * 
 * @author Lukas Koell
 * @author David Medenjak
 * @author Johannes Riedmann
 */
public abstract class Animal {

    /** name of the animal */
    protected String name;

    /**
     * Constructor.
     * @param name Name of the animal.
     */
    public Animal(String name) {
        this.name = name;
    }

    /**
     * @return name of the animal
     */
    public String getName() {
        return name;
    }

    public boolean hangOn(Transporter t) {
        return false;
    }

    /**
     * set the compartment of the animal
     * @param comp compartment the animal will be put in
     */
    public abstract boolean setCompartment(Compartment comp);
}
